/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.uoc.tdp.pac3.domain;

import java.sql.Date;

/**
 * Classe POJO (Plain Old Java Object) que representa una fila de la taula tb_users
 * @author Gerard
 */
public class User extends BaseDomain {
    
    private String name;

    public User() {
    }

    public User(String name, Integer id, Date creationDate) {
        super(id, creationDate);
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return name + " ("+super.toString()+")";
    }
    
    
}
